import type { PaginationQuery, PaginationResponse } from './common'

// 回收类型定义
type WasteType = 'paper' | 'textile' | 'mixed'

// 投放记录
export interface DisposalRecord {
  id: number
  deviceCode: string
  wasteType: WasteType
  deviceLocation: string
  userPhone: string
  disposalWeight: number
  disposalAmount: number
  disposalPhoto?: string
  disposalTime: string
  createdAt: string
  updatedAt: string
}

// 投放记录查询参数
export interface DisposalRecordQuery extends PaginationQuery {
  deviceCode?: string
  userPhone?: string
  deviceLocation?: string
  wasteType?: WasteType
  startTime?: string
  endTime?: string
  dateRange?: string[]
}

// 投放记录表单（用于导出等操作）
export interface DisposalRecordForm {
  deviceCode?: string
  userPhone?: string
  deviceLocation?: string
  wasteType?: WasteType
  startTime?: string
  endTime?: string
}

// 投放统计
export interface DisposalStats {
  totalRecords: number
  totalWeight: number
  totalAmount: number
  todayRecords: number
  todayWeight: number
  todayAmount: number
}

// 批量导出结果
export interface ExportResult {
  fileName: string
  fileSize: number
  downloadUrl: string
}
